#ifndef FORM_DZBL_H
#define FORM_DZBL_H

#include <QWidget>

#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QNetworkInterface>
#include <QNetworkRequest>
#include <QJsonObject>
#include <QJsonArray>
#include <QSqlQuery>
#include <QMap>
#include <QSqlQueryModel>

namespace Ui {
class Form_dzbl;
}

class Form_dzbl : public QWidget
{
    Q_OBJECT

public:
    explicit Form_dzbl(QWidget *parent = nullptr);
    ~Form_dzbl();
    void dzbl();
    void jjjs();
    bool putBaseIn( QJsonObject &in, QString code);
    void getInformation(QString);

private slots:
    void closeEvent(QCloseEvent *event);
    void on_pbSearch_clicked();
    void on_pbSingle_clicked();
    void on_pbAll_clicked();
    void on_pbExit_clicked();
    void on_lwList_clicked(const QModelIndex &index);


private:
    Ui::Form_dzbl *ui;
    QSqlQuery *qrm, *qro, *qrot;
    QString sq;

    QNetworkRequest request;
    QNetworkAccessManager manager ;

    QString currentMsgid;

    QMap<QString, QString> patientInfo;

    QJsonObject personBaseinfo; //1101
    QJsonObject personInsuinfo; //1101
    QJsonObject personIdetinfo; //1101

    QJsonObject person2207; //
    QJsonObject person2201;
    QJsonObject person2203;
    QJsonArray person2203a;

};

#endif // FORM_DZBL_H
